import { defHttp } from '/@/utils/http/axios';

export enum Api {
  weather = '/dp/map/weather',
  streetInfo = '/dp/streetInfo/data',
  topData = '/dp/streetInfo/topData',
  specilPointOverview = '/dp/specilPoint/overview',
  fireOverview = '/dp/fire/overview',
  eventCategory = '/dp/fire/eventCategory',
  eventChart = '/dp/fire/eventChart',
  streetGeo = 'https://a.amap.com/jsapi_demos/static/geojson/chongqing.json',
  communityGeo = '/dp/map/communityGeo',
  communityDetail = '/dp/streetInfo/communityDetail',
  specilPoint = '/dp/specilPoint/mapList',
  fireMapData = '/dp/fire/mapData',
  eventOverview = '/dp/event/overview',
  eventEventList = '/dp/event/eventList',
  eventDetail = '/dp/event/eventDetail',
  dutyList = '/dp/duty/list',
  scenePoiType = '/dp/map/scenePoiType',
  mapPois = '/dp/map/pois',
  poiInfo = '/dp/map/poiInfo',
  pointDetail = '/dp/specilPoint/pointDetail',
  pointDetailList = '/dp/specilPoint/pointDetailList',
  vue3List = '/sys/annountCement/listByUser',
  editByAnntIdAndUserId = '/sys/sysAnnouncementSend/editByAnntIdAndUserId',
  updateEventUser = '/dp/event/updateEventUser',
  emergencyPlan = '/dp/emergencyPlan/list',
}

// 天气
export const H_GetWeather = () => defHttp.get({ url: Api.weather });

// 地图顶部
export const H_GetTopData = () => defHttp.get({ url: Api.topData });
// 十分优享统计
export const H_GetOverview = () => defHttp.get({ url: Api.specilPointOverview });
//十分优享地图点位
export const H_SpecilPoint = () => defHttp.get({ url: Api.specilPoint });
//消防概览-基础数据
export const H_GetFireOverview = () => defHttp.get({ url: Api.fireOverview });
//消防概览-事件分类数据
export const H_GetEventCategory = () => defHttp.get({ url: Api.eventCategory });
//消防概览-消防事件图表数据
export const H_GetEventChart = () => defHttp.get({ url: Api.eventChart });
//消防概览-地图数据
export const H_FireMapData = () => defHttp.get({ url: Api.fireMapData });
//街道信息
export const H_GetStreetInfo = () => defHttp.get({ url: Api.streetInfo });
//街道-地图坐标数据
export const H_StreetGeo = () => defHttp.get({ url: Api.streetGeo });
//街道-社区地图坐标数据
export const H_CommunityGeo = (params) => defHttp.get({ url: Api.communityGeo, params });
//街道-社区情况数据
export const H_CommunityDetail = (params) => defHttp.get({ url: Api.communityDetail, params });
//警情一键指挥-统计数据
export const H_EventOverview = () => defHttp.get({ url: Api.eventOverview });
//警情一键指挥-紧急事件
export const H_EventEventList = () => defHttp.get({ url: Api.eventEventList });
//警情一键指挥-紧急事件详情
export const H_EventDetail = (params) => defHttp.get({ url: Api.eventDetail, params });
//值班信息列表
export const H_DutyList = (params) => defHttp.get({ url: Api.dutyList, params });
//场景POI类型信息
export const H_ScenePoiType = () => defHttp.get({ url: Api.scenePoiType });
//通过类型查询点位信息
export const H_MapPois = (params) => defHttp.get({ url: Api.mapPois, params });
//查询POI详细信息
export const H_PoiInfo = (params) => defHttp.get({ url: Api.poiInfo, params });
//十分优享点详细信息
export const H_PointDetail = (params) => defHttp.get({ url: Api.pointDetail, params });
//十分优享点详情POI列表
export const H_PointDetailList = (params) => defHttp.get({ url: Api.pointDetailList, params });
// 消息列表查询
export const H_Vue3List = (params) => defHttp.get({ url: Api.vue3List, params });
// 更新用户系统消息阅读状态
export const H_EditByAnntIdAndUserId = (params) => defHttp.put({ url: Api.editByAnntIdAndUserId, params });
// 更新处置人员
export const H_UpdateEventUser = (params) => defHttp.post({ url: Api.updateEventUser, params });
//应急预案-分页列表查询
export const H_EmergencyPlan = () => defHttp.get({ url: Api.emergencyPlan });
